<?php

namespace Mouta\SeowebBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Mouta\SeowebBundle\Entity\Asignacion
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Asignacion
{

    /**
     * @var integer $credito
     *
     * @ORM\Column(name="credito", type="integer")
     */
    private $credito;

    /**
     * @ORM\Id
     *
     * @ORM\ManyToOne(targetEntity="Mouta\SeowebBundle\Entity\Pagina")
     */
    private $pagina;

    /**
     * @ORM\Id
     *
     * @ORM\ManyToOne(targetEntity="Mouta\SeowebBundle\Entity\Servicio")
     */
    private $servicio;



    /**
     * Set credito
     *
     * @param integer $credito
     * @return Asignacion
     */
    public function setCredito($credito)
    {
        $this->credito = $credito;

        return $this;
    }

    /**
     * Get credito
     *
     * @return integer
     */
    public function getCredito()
    {
        return $this->credito;
    }

    /**
     * Set pagina
     *
     * @param Mouta\SeowebBundle\Entity\Pagina $pagina
     * @return Asignacion
     */
    public function setPagina(\Mouta\SeowebBundle\Entity\Pagina $pagina)
    {
        $this->pagina = $pagina;

        return $this;
    }

    /**
     * Get pagina
     *
     * @return Mouta\SeowebBundle\Entity\Pagina
     */
    public function getPagina()
    {
        return $this->pagina;
    }

    /**
     * Set servicio
     *
     * @param Mouta\SeowebBundle\Entity\Servicio $servicio
     * @return Asignacion
     */
    public function setServicio(\Mouta\SeowebBundle\Entity\Servicio $servicio)
    {
        $this->servicio = $servicio;

        return $this;
    }

    /**
     * Get servicio
     *
     * @return Mouta\SeowebBundle\Entity\Servicio
     */
    public function getServicio()
    {
        return $this->servicio;
    }
}